import request from '@/utils/request'

// 关于
export function getAbout() {
  return request({
    url: '/assess/versionInfo/selectNewVersionAndHelpFiles',
    method: 'get'
  })
}

// 日志信息
export function getLogs(data) {
  return request({
    url: '/monitor/operlog/findPage',
    method: 'post',
    data
  })
}

// 分析评价-获取视频列表
export function getVideoList(data) {
  return request({
    url: '/assess/testVideo/selectAll',
    method: 'post',
    data
  })
}

// 分析评价-删除
export function deleteVideo(data) {
  return request({
    url: '/fly/user/delete',
    method: 'post',
    data
  })
}

// 分析评价-评分
export function setScore(data) {
  return request({
    url: '/assess/testVideo/update',
    method: 'post',
    data
  })
}

// 数据可视化-获取人员列表
export function getUserList() {
  return request({
    url: '/assess/dataManagement/selectTaskFinishUserList',
    method: 'get'
  })
}

// 数据可视化-柱状图
export function getBarData(data) {
  return request({
    url: '/assess/dataManagement/selectScoreByTaskUserIds',
    method: 'post',
    data
  })
}

// 数据可视化-折线图
export function getLineData(data) {
  return request({
    url: '/assess/dataManagement/selectJoystickDatByTaskIds',
    method: 'post',
    data
  })
}

// 分析评价-导入
export function importData(data) {
  return request({
    url: '/assess/testVideo/importVideo',
    method: 'post',
    data
  })
}

// 分析评价-导出
export function exportData(data) {
  return request({
    url: '/fly/user/export',
    method: 'post',
    data
  })
}

// 获取用户列表
export function getTestUserList(data) {
  return request({
    url: '/fly/user/list',
    method: 'post',
    data
  })
}

// 获取记录详情
export function getRecordDetail(data) {
  return request({
    url: '/fly/task/listIdScore',
    method: 'post',
    data
  })
}

// 分数排名
export function scoreRanking(data) {
  return request({
    url: '/fly/echars/taskSum',
    method: 'post',
    data
  })
}

// 获取评分详情
export function getTestScore(data) {
  return request({
    url: '/fly/task/byId',
    method: 'post',
    data
  })
}

// 设置评分分数
export function setTestScore(data) {
  return request({
    url: '/fly/task/update',
    method: 'post',
    data
  })
}

// 首页左侧饼状图
export function leftChart(data) {
  return request({
    url: '/fly/echars/selectCakeEchars',
    method: 'post',
    data
  })
}

// 首页右侧饼状图
export function rightChart(data) {
  return request({
    url: '/fly/echars/selectCakeFile',
    method: 'post',
    data
  })
}

// 首页折线图
export function getLineChart(data) {
  return request({
    url: '/fly/echars/broken',
    method: 'post',
    data
  })
}

// 首页头部tip数据
export function getTip() {
  return request({
    url: '/fly/echars/totalName',
    method: 'get'
  })
}